#ifndef COBJECTMANAGER_H_
#define COBJECTMANAGER_H_
#include "CBase.h"
#include <vector>
using namespace std;

class CObjectManager
{
private:
	vector<CBase *>		m_vObjects;

public:
	CObjectManager() { }
	~CObjectManager() { Clear(); }

	void Add(CBase *pBase);
	void Remove(CBase *pBase);
	void Clear();

	void CheckCollisions();
	void UpdateAll(float fElapsed);
	void RenderAll();

	void OnResetDevice();
	void OnLostDevice();
};

#endif